package com.blb.mapper;

import com.blb.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {

    void insert(User user);

    void update(User user);

    void deleteById(Integer id);

    List<User> selectAll();

    User selectById(@Param("username") String username, @Param("password") String password);

    List<User> selectByUser(User user);

    List<User> selectName(String username);

    List<User> selectDeptById(Integer deptId);
}
